package com.estore.service;

public class YootDemo {
    public static void main(String[] args) throws Exception {
        Ticket ticket = new Ticket(); // 对象实例化
        for (int x = 0; x < 5; x++) { // 创建售卖线程
            new Thread(() -> {
                ticket.sale(); // 售票处理
            }, "售票员 - " + x).start();
        }
    }
}
